<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:jsf="http://xmlns.jcp.org/jsf"
                xmlns:f="http://xmlns.jcp.org/jsf/core"
                xmlns:h="http://xmlns.jcp.org/jsf/html"
                xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
                xmlns:p="http://primefaces.org/ui">

    <div class="content container">
        <div class="row">
            <div class="col-lg-12">
                <h2 class="page-title">
                    Bolsa De Trabajo
                </h2>
            </div> 
        </div>
        <div class="row">
            <div class="col-lg-6" >
                <h:form>
                    <legend class="section">Framework's Java</legend>
                    <p>Cuales framework's domina?</p>
                    <p:pickList value="#{clientBean.listFrameworks}" 
                                converter="profileconverter"  widgetVar="teamsPickList" id="teamsPickListComponent"
                                var="entity" itemValue="#{entity}" itemLabel="#{entity.name}">
                        <f:facet name="sourceCaption">Habilitados</f:facet>  
                        <f:facet name="targetCaption">Mis Habilidades</f:facet>  
                    </p:pickList>



                    <legend class="section">Certificaciones</legend>
                    <p>Que certificaciones debe tener?</p>
                    <p:pickList value="#{clientBean.listCertifications}" 
                                converter="profileconverter"  widgetVar="teamsPickList2" id="teamsPickListComponen"
                                var="entity" itemValue="#{entity}" itemLabel="#{entity.name}">
                        <f:facet name="sourceCaption">Habilitados</f:facet>  
                        <f:facet name="targetCaption">Mis Habilidades</f:facet>  
                    </p:pickList>



                    <legend class="section">Leguajes</legend>
                    <p>Que lenguajes aparte de Java debe dominar?</p>
                    <p:pickList value="#{clientBean.listLanguages}" 
                                converter="profileconverter"  widgetVar="teamsPickList3" id="teamsPickListCompone"
                                var="entity" itemValue="#{entity}" itemLabel="#{entity.name}">
                        <f:facet name="sourceCaption">Habilitados</f:facet>  
                        <f:facet name="targetCaption">Mis Habilidades</f:facet>  
                    </p:pickList>


                    <legend class="section">Herramientas</legend>
                    <p>Que herramientas debe saber utilizar?</p>
                    <p:pickList value="#{clientBean.listTools}" 
                                converter="profileconverter"  widgetVar="teamsPickList4" id="teamsPickListCompon"
                                var="entity" itemValue="#{entity}" itemLabel="#{entity.name}">
                        <f:facet name="sourceCaption">Habilitados</f:facet>  
                        <f:facet name="targetCaption">Mis Habilidades</f:facet>  
                    </p:pickList>


                    <legend class="section">Base de datos</legend>
                    <p>Que Base de datos debe saber</p>
                    <p:pickList value="#{clientBean.listDataBases}" 
                                converter="profileconverter"  widgetVar="teamsPickList5" id="teamsPickListCompo"
                                var="entity" itemValue="#{entity}" itemLabel="#{entity.name}">
                        <f:facet name="sourceCaption">Habilitados</f:facet>  
                        <f:facet name="targetCaption">Mis Habilidades</f:facet>  
                    </p:pickList>
                    <br/><br/>
                    <div align="center" >
                        <p:commandButton value="Guardar Información" 
                                         update="@form"
                                         action="#{clientBean.saveOrUpdateProfile()}"/>
                    </div>
                </h:form>
            </div>
        </div>
    </div>
</ui:composition>

